<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head lang="en">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>订货郎登录</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/common/common.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/register.css"/>
    <script src="${pageContext.request.contextPath}/js/jquery-1.11.3.js"></script>
    <script type="text/javascript">
	    $("#login").click(function(){
			$("userLogin").submit();
	    })
	    $(document).ready(function(){
		    if(${userLoginResult != null}){
		    	$('.error-mpt').css('visibility','visible').html('账号或密码输入错误');
		    }
	    })
    </script>
</head>
<body>
    <header>
        <ul class="clearfix">
            <li><img src="${pageContext.request.contextPath}/img/logo.png"/></li>
        </ul>
    </header>
    <div id="main">
        <div class="center">
            <h4><p class="error-mpt"></p></h4>
            <form action="${pageContext.request.contextPath}/distributorUser/login" method="post" id="userLogin">
	            <ul class="vali">
	               <li class="phone"><input type="text" maxlength="11" name="distributorName" placeholder="公司名称"/></li>
	               <li class="phone"><input type="text" maxlength="11" name="userName" placeholder="请输入用户名/手机号"/></li>
	               <li class="pwd"><input type="password" maxlength="16" minlength="6" name="password" placeholder="请输入密码"/></li>
	               <li class="forgetPwd"><a class="forget" href="${pageContext.request.contextPath}/distributorUser/gotoPassword">忘记密码？</a></li>
	               <li class="next"><button id="login">登录</button></li>
	               <li class="last"><a href="#" id="phoneLoad"><i></i>手机下载</a>
	               		<a href="${pageContext.request.contextPath}/distributorUser/gotoRegister" id="toRegister">立即注册</a>
	               </li>
	            </ul>
            </form>
        </div>
    </div>
    <footer>
        <p>Copyright © 2017 dico.com</p>
    </footer>
    <script>
        /* $("#main").on("click",".vali .rember",function(e){
            e.preventDefault();
            $(this).children("i").toggleClass("hide");
        }); */
        //下一步
        /* $("#login").click(function(){
			
        }) */

    </script>
</body>
</html>